package com.suyafei.feign;

import com.suyafei.util.JsonData;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: suyafei-1024-shop
 * @description
 * @author: luffy
 * @create: 2021-03-23 14:33
 */
@FeignClient("suyafei-user-service")
public interface AddressFeignService {
    /**
     * 远程RPC查询订单地址
     * @param addressId
     * @return
     */
    @GetMapping("/api/address/v1/find/{address_id}")
    JsonData detail(@ApiParam(value = "地址id", required = true) @PathVariable("address_id") long addressId);
}
